package com.yunxi.vip.service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.yunxi.core.web.ApiResult;
import com.yunxi.core.web.LoginInfo;
import com.yunxi.core.web.ResponseUtil;
import com.yunxi.vip.pojo.VipVO;

import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.List;

public class VipDubboServiceMock implements VipDubboService {
    @Override
    public VipVO getById(String id) throws InvocationTargetException, IllegalAccessException {
        return null;
    }

    @Override
    public ApiResult saveOrUpdate(VipVO vipVO, LoginInfo loginInfo) throws Exception {
        return ResponseUtil.fail900();
    }

    @Override
    public void removeById(String id) {

    }

    @Override
    public PageInfo<VipVO> findPageByVO(VipVO vipVO, Integer pageNum, Integer pageSize) throws InvocationTargetException, IllegalAccessException {
        PageInfo<VipVO> p = new PageInfo<VipVO>();
        List list = new ArrayList();
        VipVO v = new VipVO();
        v.setVipName("暂无数据");
        list.add(v);
        p.setList(list);
        return p;
    }

    @Override
    public void removeByListVo(List<VipVO> vipVOList) throws IllegalAccessException, InvocationTargetException, InstantiationException {

    }

    @Override
    public List listByVo(VipVO vipVO) {
        return null;
    }

    @Override
    public VipVO getByVin(String vin) {
        return null;
    }
}
